package pers.wensheng.patterns.creator_pattern.factory_pattern.static_factory_mode;

import pers.wensheng.patterns.creator_pattern.factory_pattern.static_factory_mode.entity.Coffee;
import pers.wensheng.patterns.creator_pattern.factory_pattern.static_factory_mode.factory.SimpleCoffeeFactory;

/**
 *  咖啡馆
 */
public class CoffeeStore {
    public Coffee orderCoffee(String type){

        Coffee coffee = SimpleCoffeeFactory.createCoffee(type);

        //加奶加糖
        coffee.addMilk();
        coffee.addSugar();
        return coffee;
    }
}
